package cn.bdqn.service.impl;

import cn.bdqn.domain.Admin;
import cn.bdqn.domain.Client;
import cn.bdqn.service.AdminClientService;
import cn.bdqn.utils.result.Result;
import cn.bdqn.utils.result.ResultGenerator;
import org.springframework.stereotype.Component;

/**
 * 服务降级
 * @author dkj
 */
@Component
public class AdminClientServiceImpl implements AdminClientService {

    @Override
    public Result addInfo(Admin admin) {
        return ResultGenerator.genFailResult("报错了");
    }

    @Override
    public Result queryInfoById(Integer id) {
        return ResultGenerator.genFailResult("报错了");
    }

    @Override
    public Result queryInfoByPhoneAndPassword(String password, String phone) {
        return ResultGenerator.genFailResult("报错了");
    }

    @Override
    public Result queryByPhoneIsExist(String phone) {
        return ResultGenerator.genFailResult("报错了");
    }

    @Override
    public Result queryAllInfo(Integer pageNum, Integer pageAmount) {
        return ResultGenerator.genFailResult("报错了");
    }

    @Override
    public Result queryInfoByNameOrPhone(String name, String phone, Integer pageNum, Integer pageAmount) {
        return ResultGenerator.genFailResult("报错了");
    }

    @Override
    public Result alterInfo(Admin admin) {
        return ResultGenerator.genFailResult("报错了");
    }

    @Override
    public Result alterStateById(Integer id) {
        return ResultGenerator.genFailResult("报错了");
    }

    @Override
    public Result AddClientInfo(Client client) {
        return ResultGenerator.genFailResult("报错了");
    }

    @Override
    public Result queryById(Integer id) {
        return ResultGenerator.genFailResult("报错了");
    }

    @Override
    public Result queryInfoByPhone(String phone) {
        return ResultGenerator.genFailResult("报错了");
    }

    @Override
    public Result queryClientByPhoneIsExist(String phone) {
        return ResultGenerator.genFailResult("报错了");
    }

    @Override
    public Result queryAll(Integer pageNum, Integer pageAmount) {
        return ResultGenerator.genFailResult("报错了");
    }

    @Override
    public Result queryInfoByPhoneAndName(String phone, String name, Integer pageNum, Integer pageAmount) {
        return ResultGenerator.genFailResult("报错了");
    }

    @Override
    public Result deleteStateById(Integer id) {
        return ResultGenerator.genFailResult("报错了");
    }

    @Override
    public Result alterInfo(Client client) {
        return ResultGenerator.genFailResult("报错了");
    }
}
